export const $fetch =  (request,data,url) =>  new Promise( r =>{
    fetch(`/vrv-monitor-platform-web/${url}`,{
      method: request,
      headers: {'Content-Type': "application/json" },
      body: JSON.stringify(data)
    }).then( d =>  r(d.json()) ) 
  })




